package com.opg.uop.manage.system.model;

import java.io.Serializable;
import java.util.Date;

public class User implements Serializable{
	
	private static final long serialVersionUID = 8159268988108891019L;
	
	public static enum USER_STATE {
		
		USER_STATE_ABLED(0, "允许登入"),USER_STATE_DISABLED( 1, "禁用登入"),USER_STATE_DEL(2,"删除");

		USER_STATE(Integer key, String value) {
			this.key = key;
			this.value = value;
		}

		private Integer key;
		private String value;

		public Integer getKey() {
			return key;
		}

		public String getValue() {
			return value;
		}

	}

	private int id;
	
	private String loginName;//登入名
	
	private String password;//密码
	
	private Date loginDate;
	
	private Date lastLoginDate;
	
	private String loginIp;
	
	private String lastLoginIp;
	
	private String empNo;//员工编号
	
	private String enterType;
	
	private int state; //状态 0:启用 1:禁用

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Date getLoginDate() {
		return loginDate;
	}

	public void setLoginDate(Date loginDate) {
		this.loginDate = loginDate;
	}

	public Date getLastLoginDate() {
		return lastLoginDate;
	}

	public void setLastLoginDate(Date lastLoginDate) {
		this.lastLoginDate = lastLoginDate;
	}

	public String getLoginIp() {
		return loginIp;
	}

	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}

	public String getLastLoginIp() {
		return lastLoginIp;
	}

	public void setLastLoginIp(String lastLoginIp) {
		this.lastLoginIp = lastLoginIp;
	}

	public String getEmpNo() {
		return empNo;
	}

	public void setEmpNo(String empNo) {
		this.empNo = empNo;
	}

	public String getEnterType() {
		return enterType;
	}

	public void setEnterType(String enterType) {
		this.enterType = enterType;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

}
